package com.ywgt.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.ywgt.pojo.Order;
import com.ywgt.mapper.OrderMapper;
import com.ywgt.service.OrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单表 服务实现类
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public Page<Order> getOrders(Integer[] orderStatusArray, Integer id, String name, int page, int limit, String order, String sort) {
        PageHelper.startPage(page,limit);
        return baseMapper.selectOrders(name,id,orderStatusArray,order,sort);
    }
}
